<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>Sample - simple-template</title>
<script type="text/javascript" src="../../simple-template.js"></script>
</head>
<body>
<div id="template-id">
$# 3 * 8 # //24<br>
$# message1 # $# message2.text # //Hello World
</div>  
<script type="text/javascript">
	var t = new SimpleTemplate();
	var html = t.parse("template-id", {message1:"Hello", message2:{text:"World"}});
	document.getElementById("template-id").innerHTML = html;
</script>
</body>
</html>